package com.multi.thread.chapter02.demo07;

public class MyThread1 extends Thread {
	
	private Task task;

	public MyThread1(Task task) {
		this.task = task;
	}
	
	@Override
	public void run() {
		task.doLongTimeTask();
	}

}
